package 笔试.迅雷;

import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class 数字转换 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String line = in.nextLine();
        String[] split = line.trim().split(" ");
        int len = split.length;
        if (len <= 3) {
            System.out.println(len);
            return;
        }
        int[] nums = new int[len];
        int[] cnts = new int[21];
        int max = 0;
        for (int i = 0; i < len; i++) {
            if (split[i].isEmpty()) continue;
            nums[i] = Integer.parseInt(split[i]);
            cnts[nums[i] + 10]++;
            if (cnts[nums[i] + 10] > max) {
                max = cnts[nums[i] + 10];
            }
        }
        int ans = Math.min(max + 3, len);
        System.out.println(ans);
    }
}